﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cofe.Core
{
    public static class EntryTypes
    {
        public const string VolumeKey = "EntryTypes";
        public const string Container = "Container";
        public const string EntryType = "EntryType";
        public const string CofeDirectoryInfo = "CofeDirectoryInfo";
        public const string CofeItemInfo = "CofeItemInfo";
        public const string AutoEntryList = "AutoEntryList";
        public const string CustomEntryList = "CustomEntryList";
        public const string EntryLink = "EntryLink";
        public const string Link = "Link";
    }

    public static class CofeConstants
    {
        public const string Namespace = "http://quickzip.org/cofe/3";
        public static DateTime MinDateTime = new DateTime(1980, 1, 1);
        public static Guid RootGuid = new Guid("232d9f59-e5b4-4552-a45b-b72fe06dc3bf");

        public static Guid[] SpecialDirectoryGuids = new Guid[]
        {
            RootGuid
        };
    }

    public static class SecurityConstants
    {
        /// <summary>
        /// Meant active role (in CofePrincipal) is a service.
        /// </summary>
        public static string ServiceRole = "Service";
        public static string ServiceType_EventListener = "EventListener";
        public static string ServiceType_ActiveUpdater = "ActiveUpdater";
        public static string ServiceType_WriteRepositoryAsync = "WriteRepositoryAsync";
    }

    public static class ParameterKeys
    {
        public static string CurrentUri = "CurrentUri";
        public static string CurrentPage = "out_CurrentPage";
        public static string TotalPages = "out_TotalPages";
        public static string ItemsPerPage = "out_ItemsPerPage";
        public static string TotalEntries = "out_TotalEntries";
    }
}
